import request from '@/utils/request'

export function getUserRankMemberList(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/getUserRankMemberList',
    method: 'post',
    data: params
  })
}

export function getMeRankMemberListPC(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/getMeRankMemberListPC',
    method: 'post',
    data: params
  })
}

export function addRankMember(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/add',
    method: 'post',
    data: params
  })
}

export function editRankMember(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/edit',
    method: 'post',
    data: params
  })
}

export function deleteRankMember(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/delete',
    method: 'post',
    data: params
  })
}

export function publishRankMember(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/publish',
    method: 'post',
    data: params
  })
}

export function getRankCategoryList(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/getRankCategoryList',
    method: 'post',
    data: params
  })
}

export function getRankList(params) {
  return request({
    url: process.env.RANK_API + '/rank/getRankList',
    method: 'get',
    data: params
  })
}

export function getMemberGradeList(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/getMemberGradeList',
    method: 'post',
    data: params
  })
}

export function getMemberTagList(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/getMemberTagList',
    method: 'post',
    data: params
  })
}
// 获取支付方式
export function getPayMethodPageList(params) {
  return request({
    url: process.env.RANK_API + '/createRankMember/getPayMethodList',
    method: 'get',
    data: params
  })
}